/**
 * 员工ajax
 * @author 陈盼
 * date 2024-01-11 上午 09：46
 */
class Administrator_information {
    /**
     * 新增员工
     * @param administratorInformation json实体类
     * @return {Promise<unknown>}
     */
    addAdministratorInformation(administratorInformation){
        return new Promise((resolve, reject) => {
            $.ajax({
                url: "/www.xiaomi.com/background/add/employee",
                method: "POST",
                data: {
                    administratorInformation:JSON.stringify(administratorInformation)
                },
                // administratorInformation,
                // processData: false,
                // contentType:false,
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
}